#################################################################################
# Autor:   Lukas Brzobohaty, xbrzob06@stud.fit.vutbr.cz
#          David Marecek, xmarec10@stud.fit.vutbr.cz
# Soubor:  ims.plt
# Projekt: Implementace modelu zalozeneho na metode Monte-Carlo
# Predmet: IMS
# Popis:   
# Poznamka:
################################################################################

reset  

set style data lines
set grid
set terminal jpeg medium
set output "krit.hydrogram.jpeg"
set multiplot
set title "Kriticky hydrogram a prubeh hladiny"
set key
set xlabel "Cas [s]"
set ylabel "Poloha hladiny v nadrzi [m]"
set y2label "Prutok natrzi [m3/s]"
plot [0:250][0:] "ims.dat" using 1:4 title "Poloha hladiny v nadrzi - 10000 iteraci", \
	"ims.dat" using 1:3 title "Prutok natrzi - 10000 iteraci" smooth bezier, \
	"ims_a.dat" using 1:4 title "Poloha hladiny v nadrzi - 100000 iteraci", \
	"ims_a.dat" using 1:3 title "Prutok natrzi - 100000 iteraci" smooth bezier

pause 1

reset
set nomultiplot
set grid
set terminal jpeg medium
set output "histogram_Qbmax.jpeg"
set nokey
set title "Histogram kulminacniho prutoku Qbmax - 100000 iteraci"
set xlabel "Kulminacni prutok Qbmax [m3/s]"
set ylabel "Pocet realizaci"
set style fill   solid 1.00 border -1
bin(x,size) = floor(1.0*x/size)*size
set xtics 0.005
plot 'ims_a.dat' u (bin($2,0.001)):(1) smooth frequency with boxes

pause 1

#end
